package p5_6;

public class FibonacciGenerator {
//Instance Vars
	int f1;
	int f2;
	
//Constructors
	public FibonacciGenerator(int base)
	{
		f1=base;
	}
//Methods
	public int nextFib(int f2)
	{
		int result = f1 * f2;
		f1=result;
		return result;		
	}
	
	
}
